package visits.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import visits.model.Visit;

import java.util.Collection;
import java.util.Collections;
import java.util.List;

public interface VisitRepository extends JpaRepository<Visit, Integer> {

    List<Visit> findByPetId(Integer petId);

    List<Visit>findByPetIdIn(Collection<Integer> petIds);
}
